package com.zhiyou100.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.mapper.AdminMapper;
import com.zhiyou100.model.MLog;
import com.zhiyou100.model.MUser;
import com.zhiyou100.model.PublishTheProject;
@Service
public class AdminServiceImpl implements AdminService{

	@Autowired
	AdminMapper mapper;
	
	@Override
	public MUser findAdminNameAndAnminPassword(Map<String,Object> map) {
		return mapper.findAdminNameAndAnminPassword(map);
	}

	@Override
	public List<PublishTheProject> findAll(Map<String, Object> map) {
		return mapper.findAll(map);
	}

	@Override
	public PublishTheProject findPtpById(int id) {
		return mapper.findPtpById(id);
	}

	@Override
	public List<PublishTheProject> allAudit(Map<String, Object> map) {
		return mapper.allAudit(map);
	}

	@Override
	public int update(PublishTheProject publishTheProject) {
		return mapper.update(publishTheProject);
	}

	@Override
	public List<MLog> lookLog(Map<String, Object> map) {
		return mapper.lookLog(map);
	}

	@Override
	public List<MUser> findAllMUser() {
		return mapper.findAllMUser();
	}

	@Override
	public int addMUser(MUser muser) {
		return mapper.addMUser(muser);
	}

	@Override
	public void delete(int id) {
		mapper.delete(id);
	}

	@Override
	public int updata(MUser mUser) {
		return mapper.updata(mUser);
	}

}
